package com.atguigu.state.money;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description:
 * @create: 2022-03-31 11:31
 **/
public enum StateEnum {
    //通用状态（订单生成）
    GENERATE(1, "GENERATE"),

    //已审核
    REVIEWED(2, "REVIEWED"),

    //已发布
    PUBLISHED(3, "PUBLISHED"),

    //待付款
    NOT_PAY(4, "NOT_PAY"),

    //已付款
    PAID(5, "PAID"),

    //反馈（已完结）
    FEED_BACKED(6, "FEED_BACKED");

    private final int key;
    private final String value;

    StateEnum(int key, String value) {
        this.key = key;
        this.value = value;
    }

    public int getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
